home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20021006-20030409 / 000269_tom.horsley@att.net_Sun Feb 9 16:37:18 EST 2003.msg < prev    next >
Text File  |  2020-01-01  |  2KB  |  70 lines

  1. Article: 14063 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!panix!nycmny1-snh1.gtei.net!chcgil2-snh1.gtei.net!news.gtei.net!wn12feed!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail
  3. Sender: tom@SPIKE
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: input pattern matching blowing my mind...
  6. References: <uisvwssje.fsf@att.net> <b213u0$i95$1@watsol.cc.columbia.edu>
  7. From: tom.horsley@att.net (Thomas A. Horsley)
  8. Message-ID: <u8ywrd5o8.fsf@att.net>
  9. Lines: 49
  10. User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2
  11. MIME-Version: 1.0
  12. Content-Type: text/plain; charset=us-ascii
  13. NNTP-Posting-Host: c304182efaaddfe794c873897cc4b1fc
  14. X-Complaints-To: abuse@worldnet.att.net
  15. X-Trace: bgtnsc05-news.ops.worldnet.att.net 1044660999 c304182efaaddfe794c873897cc4b1fc (Fri, 07 Feb 2003 23:36:39 GMT)
  16. NNTP-Posting-Date: Fri, 07 Feb 2003 23:36:39 GMT
  17. Organization: AT&T Worldnet
  18. Date: Fri, 07 Feb 2003 23:36:39 GMT
  19. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14063
  20.  
  21. >It seems to happen only in \fpattern() arguments, and only when SET INPUT
  22. >CASE is OFF.
  23.  
  24. Thanks! That works for me, but I have even more confusing results
  25. now. Here is the script in its current form (which works):
  26.  
  27. output \13
  28. input 10 {linux> }
  29. if success {
  30.    output ssh-add\13
  31.    set input case observe
  32.    input 10 \Fpattern({Enter passphrase for*:?})
  33.    if success {
  34.       askq /GUI \%p \v(inmatch)
  35.       output \%p\13
  36.    }
  37.    while 1 {
  38.       minput 10 {try again: } {linux> }
  39.       if failure { break }
  40.       if = \v(minput) 2 { break }
  41.       askq /GUI \%p \v(inmatch)
  42.       output \%p\13
  43.    }
  44. }
  45. connect
  46.  
  47. If I try to move everything into the while loop:
  48.  
  49. output \13
  50. input 10 {linux> }
  51. if success {
  52.    output ssh-add\13
  53.    while 1 {
  54.       set input case observe
  55.       minput 10 {try again: } {linux> } \Fpattern({Enter passphrase for*:?})
  56.       if failure { break }
  57.       if = \v(minput) 2 { break }
  58.       askq /GUI \%p \v(inmatch)
  59.       output \%p\13
  60.    }
  61. }
  62. connect
  63.  
  64. It (once again) never matches the initial prompt. I can't even get
  65. it to work in this case by leaving off the "E" :-).
  66. --
  67. >>==>> The *Best* political site <URL:http://www.vote-smart.org/> >>==+
  68.       email: Tom.Horsley@worldnet.att.net icbm: Delray Beach, FL      |
  69. <URL:http://home.att.net/~Tom.Horsley> Free Software and Politics <<==+
  70.